<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>用户收藏页面</title>
</head>
<?php 
include_once("inc.php");
include_once("base.php");
$tb_name = "collect";
$where_sql = "userid=".$_SESSION["id"];
include_once ROOT_PATH."/common/where.php";
$list = db_get_page("select * from $tb_name where $where_sql order by id desc", $page,12);
include_once ROOT_PATH."/common/page.php";
?>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" rowspan="2" valign="top" bgcolor="#FFFFFF"></td>
			<td valign="top">
				<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
					<tr bgcolor="#FFFFFF">
						<td height="31">
							<div class="title">我的收藏</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" rowspan="2" bgcolor="#FFFFFF"></td>
		</tr>
		<tr>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr><td colspan="4" height="10"></td></tr>
					<tr>
						<td width="1%">&nbsp;</td>
						<td width="96%">
							<form action="?" method="get" name="lsm" id="lsm">
								<input type="hidden" name="chk" value="ok" />
								<input type="hidden" name="account" value="<?php echo $_REQUEST["account"]; ?>"/>
								<table width="100%">
									<td colspan="2">
										<table width="100%"  class="cont tr_color">
											<tr>
												<th width="30" align="center"></th>
												<th>收藏</th>
												<th width="150">时间</th>
											</tr>
											<?php
											foreach($list["data"] as $row) {
												?>
												<tr align="center" class="d">
													<td>
														<input type="checkbox" name="sel_id[]" id="sel_id" value="<?php echo $row['id'];?>">
													</td>
													<td align="center">
														<a href="../goodsshow.php?id=<?php echo $row["content1id"];?>" target="_blank">
															<?php echo db_get_val("goods",$row["content1id"],"title")?>
														</a>
													</td>
													<td align="center"><?php echo $row['addtime'];?></td>
												</tr>
											<?php } ?>
											<tr align="center" class="d">
												<td></td>
												<td colspan="9" align="left">
													&nbsp;&nbsp;
													<input type="checkbox" id="sel_all" value="yes"  onClick="select_all(this.form)">
													<strong>全选</strong>
													<select name="sel_do" size="1" id="sel_do">
														<option value="">选择状态</option>
														<option value="删除">删除</option>
													</select>
													<input type="submit" value="操作" onClick="return sel_click(this.form)">
												</td>
											</tr>
										</table>
									</td>
									<!-- </tr> -->
								</table>
							</form>
							<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
								<tr>
									<td align="center"><?php echo $page_show;?></td>
								</tr>
							</table>    
						</td>
						<td width="1%">&nbsp;</td>
					</tr>
					<tr><td height="20"></td></tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>